package com.kjsb.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;


@Data
@TableName("user")
public class User implements Serializable {
    private static final long serialVersionUID = 155214625961893744L;
    /**
     * 登录用户ID自增
     */
    @TableId(type = IdType.AUTO)
    private Integer uid;
    /**
     * 人员分组ID
     */
    private Integer gid;
    /**
     * 登录用户名
     */
    private String username;
    /**
     * 登录密码
     */
    private String password;

    public User() {
    }

    public User(Integer gid, String username, String password) {
        this.gid = gid;
        this.username = username;
        this.password = password;
    }
}

